<template>
  <div id="unit" class="col-sm-3 form-input-group">
    <label for="f_paytype" class="control-label">付款方式:</label>
      <v-select id="pay"
      v-model="pay"
      placeholder='请选择'
      :value.sync="pay"
      :options='paytype'
      close-on-select clear-button>
    </v-select>
  </div>
</template>
<script>
/**
*公共组件
*付款方式
*/
import AppData from '../../../stores/AppData'
export default {
  props: ['pay'],
  ready () {
    if (this.pay.length > 0) {
      this.pay = [this.pay]
    } else {
      this.pay = ['现金缴费']
    }
  },
  computed: {
    paytype () {
      return AppData.getParam('缴费类型')
    }
  }
}
</script>
<style>
 #row{
  margin-top: 5px;
}
</style>
